﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" />
    <link href="/CSS/style.css" rel="stylesheet" />
</head>
<body>
    <div id="admin2">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
            <legend>角色信息</legend>
        </fieldset>
    </div>
    <form class="layui-form" action="" lay-filter="formTest">
        <div id="admin">
            <div class="layui-form-item">
                <div class="layui-form-line;">
                    <div style=" margin-left: 40%;">
                        <label class="layui-form-label">角色名称：</label>
                        <div class="layui-input-inline">
                            <input type="text" style="width: auto" id="RoleName" name="RoleName" placeholder="请输入角色名" required lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-form-line;">
                    <div style=" margin-left: 40%;">
                        <label class="layui-form-label">角色类型：</label>
                        <div class="layui-input-inline" style="width: 182px">
                            <select class="layui-select" name="RoleType" required lay-verify="required" lay-filter="RoleType" id="RoleType">
                                <option value="">请选择</option>
                                <option value="超级管理员">超级管理员</option>
                                <option value="二级审核员">二级审核员</option>
                                <option value="一级审核员">一级审核员</option>
                                <option value="普通教工">普通教工</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-form-line;">
                    <div style=" margin-left: 40%;">
                        <label class="layui-form-label">备注：</label>
                        <div class="layui-input-inline">
                            <input type="text" style="width: auto" name="Note" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
            <legend>菜单栏目</legend>
        </fieldset>
        <div class="layui-form-item" id="admin3">
            <div class="layui-input-block" style="margin-left: 0px">
                <button class="layui-btn" lay-submit lay-filter="addFatherMenu">增加主菜单</button>
            </div>
        </div>

        <div id="test7" class="demo-tree"></div>
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
            <div style="margin-left: 45%;margin-top: 10px" id="bt1">
                <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
            </div>
        </fieldset>
    </form>
    <!--新增节点-->
    <div id="add-node" class="layui-fluid" style="display: none;">
        <form class="layui-form" id="add-form" action="">
            <input type="text" name="FatherId" style="display:none;" class="layui-input">
            <input type="text" name="MenuId" style="display:none;" class="layui-input">
            <div class="layui-form-item" style="margin-top: 20px">
                <label class="layui-form-label">菜单名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="MenuName" class="layui-input" required="" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">菜单地址</label>
                <div class="layui-input-inline">
                    <input type="text" name="Href" class="layui-input" required="" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">顺序</label>
                <div class="layui-input-inline">
                    <input type="text" name="Sort" class="layui-input" required="" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="addNode">保存</button>
                </div>
            </div>
        </form>
    </div>

    <!--修改节点-->
    <div id="update-node" class="layui-fluid" style="display: none;">
        <form class="layui-form" id="update-form" action="">
            <input type="text" name="FatherId" style="display:none;" class="layui-input">
            <input type="text" name="MenuId" style="display:none;" class="layui-input">
            <div class="layui-form-item" style="margin-top: 20px">
                <label class="layui-form-label">菜单名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="MenuName" class="layui-input" required="" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">菜单地址</label>
                <div class="layui-input-inline">
                    <input type="text" name="Href" class="layui-input" required="" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">顺序</label>
                <div class="layui-input-inline">
                    <input type="text" name="Sort" class="layui-input" required="" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="updateNode">保存</button>
                </div>
            </div>
        </form>
    </div>

    <!--新增父节点-->
    <div id="add-FatherNode" class="layui-fluid" style="display: none;">
        <form class="layui-form" id="addFather-form" action="">
            <input type="text" name="FatherId" style="display:none;" class="layui-input">
            <input type="text" name="MenuId" style="display:none;" class="layui-input">
            <div class="layui-form-item" style="margin-top: 20px">
                <label class="layui-form-label">菜单名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="MenuName" class="layui-input" required="" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">顺序</label>
                <div class="layui-input-inline">
                    <input type="text" name="Sort" class="layui-input" required="" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="addFatherNode">保存</button>
                </div>
            </div>
        </form>
    </div>
</body>
</html>
<script src="js/tool/jquery-3.6.3.min.js"></script>
<script src="layuiadmin/layui/layui.js"></script>
<script src="js/tool/sweetalert.js"></script>
<script src="js/tool/QueryString.js"></script>
<script src="js/tool/JqHelper.js"></script>
<script src="js/roleCreate.js"></script>